<?php

namespace Controller\OAuth;

abstract class Base extends \Controller\Base {

	function convertUrlQuery($query) {
		$queryParts = explode('&', $query);
		$params = array();
		foreach ($queryParts as $param) {
			$item = explode('=', $param);
			if ($item) {
				$params[$item[0]] = !isset($item[1]) ? '' : $item[1];
			}
		}
		return $params;
	}
}